package com.it.smn.divide.dao;

import com.it.smn.divide.entity.UserEntity;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * @author sunmannian
 * @ClassName com.it.smn.divide.dao.UserDao
 * @Date 2020/8/27 9:47
 * @Version V1.0
 * Description  <请输入一句话描述该类功能>
 * Copyright (C) 北京中电兴发科技有限公司  since 2020/8/27
 */
@Repository
public interface UserDao {

    @Insert("insert into user values(#{id},#{name})")
    void save(UserEntity userEntity);

    @Select("select id,name from user where id =#{id}")
    UserEntity selectOne(String id);
}
